package com.audaque.springboot.foshanupload.web.mpguidemo.mpgt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

  import java.time.*;
  import com.fasterxml.jackson.annotation.JsonFormat;
  import org.springframework.format.annotation.DateTimeFormat;
 import com.baomidou.mybatisplus.annotation.*;

import io.swagger.v3.oas.annotations.media.Schema;


import lombok.*;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author chinaben
 * @since 2025-05-15
 */
@Data
@Getter
@Setter
@Schema(name = "User", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @Schema(description = "用户账号")
    private String userName;


    @Schema(description = "用户昵称")
    private String nickName;


    @Schema(description = "用户邮箱")
    private String email;


    @Schema(description = "手机号码")
    private String phonenumber;


    @Schema(description = "用户性别（0男 1女 2未知）")
    private String sex;


    @Schema(description = "头像地址")
    private String avatar;


    @Schema(description = "密码")
    private String password;


    @Schema(description = "帐号状态（0正常 1停用）")
    private String status;


    @Schema(description = "删除标志（0代表存在 2代表删除）")
    private String delFlag;


    @Schema(description = "最后登录IP")
    private String loginIp;


    @Schema(description = "最后登录时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loginDate;


    @Schema(description = "创建者")
    private String createBy;


    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    @Schema(description = "更新者")
    private String updateBy;


    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


    @Schema(description = "备注")
    private String remark;


    private Long tenantId;


    private Long tableYear;

}
